// enemy.cpp

#include "enemy.h"
#include <stdio.h>



//Object's default constructor. Initializes all of the object's private variables.
enemy::enemy()
{
  moveSpeed =0;
  healthPoints = 1; //grandpa gets 10 healthpoints
  coordinates.x =0; 
  coordinates.y = 0;
}


//Another constructor that initalizes baseMoveSpeed and baseHealthPoints with specific values.
enemy::enemy(double baseMoveSpeed, double baseHealthPoints)
{

  moveSpeed = baseMoveSpeed;
  healthPoints = baseHealthPoints;
}


//This funtion returns the move speed of the object.
double enemy::getMoveSpeed(){
  return moveSpeed;
}

//This function takes a double and sets the moveSpeed variable to the double that was passed in.
void enemy::setMoveSpeed(double newSpeed)
{
  moveSpeed = newSpeed;
}


//This function returns the health points of the object. 
double enemy::getHealthPoints()
{
  return healthPoints;
}


//This function takes a double and set the healthPoints variable to the double that was passed in.
void enemy::setHealthPoints(double newHealth)
{
 this->healthPoints = newHealth;
}


//This function returns the x,y pair location of the object.
pair enemy::getCoordinates()
{
  return this->coordinates;
}

//This function takes an x,y pair and changes the object's x,y location to the x,y pair that was passed in.
void enemy::setCoordinates(int newX, int newY)
{
  coordinates.x = newX;
  coordinates.y = newY;
}

//This function takes an integer value and changes the object's x location to the integer that was passed in.
void enemy::setX(int newX)
{
  coordinates.x = newX;
}

//This function takes an integer value and changes the object's y location to the integer that was passed in.
void enemy::setY(int newY)
{
  coordinates.y=newY;
}

//This is the object's destructor.
enemy::~enemy() 
{ 
}

	      
